
public class Article {
	private String libelle;
	private double pu;
	
	public Article(){
		libelle = "";
		pu = 0;
	}
	
	public Article(String libelle, double pu) {
		if(libelle==""|| pu<0){
			System.err.println("Arguments invalides");
		}
		this.libelle = libelle;
		this.pu = pu;
	}
	
	public String getLibelle() {
		return libelle;
	}
	public void setLibelle(String libelle) {
		if (libelle =="")
			System.err.println("Libelle vide");
		else
			this.libelle = libelle;
	}
	public double getPu() {
		return pu;
	}
	public void setPu(double pu) {
		if (pu < 0)
			System.err.println("Prix invalide");
		else
			this.pu = pu;
	}
	
}
